<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<link rel="stylesheet" href="${initParam.root }/css/board/main_boardWriteUpdate.css">
<script type="text/javascript">
		$(document).ready(function(){
			$("#write_btn").click(function(){
				if($("#b_title").val()==""){
					alert("제목을 입력하세요");
					return false;
				}else if($("#b_content").val()==""){
					alert("내용을 입력하세요");
					return false;
				}
				$("#write_form").submit();
			});
		});
	</script>
<div id="전체틀">
	<header id="title">
		<font><b>글쓰기</b></font>
	</header>
	${requestScope.controller }
	<div id="write">
		<form action="${initParam.root }/board.do" method="post" id="write_form">
		<input type="hidden" name="command" value="noticeWrite">
			<table>
				<tr>
					<td>제목</td><td><input type="text" id="b_title" name="b_title" maxlength="100" size="33"></td>
				</tr>
				<tr>
					<td colspan="2"><textarea cols="35" rows="10" name="b_content" id="b_content"></textarea></td>
				</tr> 
				<tr>
					<td colspan="2"><img alt="글쓰기" src="${initParam.root }/img/paging/confirm.gif" id="write_btn"></td>  
				</tr>
			</table>
		</form>
	</div>
</div>